Skip to content

Update release guide with multi-platform matrix strategy#5

Open
josebalius wants to merge 2 commits intomainfrom
misty-basin
Open

Update release guide with multi-platform matrix strategy#5
josebalius wants to merge 2 commits intomainfrom
misty-basin

Conversation

@josebalius
Copy link
Member

Engines often include platform-specific binaries (e.g., the copilot CLI), so a single-platform release isn't sufficient. This updates the "Releasing Your Engine" section in the integration guide to show a matrix strategy that produces per-platform artifacts.

Changes

  • Replaces the single ubuntu-latest workflow example with a matrix across 5 platform/arch targets (linux-x64, linux-arm64, darwin-arm64, darwin-x64, win32-x64)
  • Shows how to pass TARGET_PLATFORM / TARGET_ARCH env vars so build scripts bundle the correct binaries
  • Names tarballs per platform (e.g., engine-linux-x64.tar.gz) and uploads all to one GitHub Release

This mirrors the approach we adopted in the example engine repo.

Replace the single-platform release workflow example with a matrix strategy
that produces per-platform artifacts (e.g., engine-linux-x64.tar.gz,
engine-darwin-arm64.tar.gz). This reflects the pattern used in practice where
engines include platform-specific binaries.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@josebalius josebalius requested a review from a team as a code owner March 18, 2026 20:47
Copilot AI review requested due to automatic review settings March 18, 2026 20:47
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the integration guide’s “Releasing Your Engine” section to recommend multi-platform releases via a GitHub Actions matrix, producing one artifact per OS/architecture so engines with platform-specific binaries can be distributed correctly.

Changes:

  • Expands the release workflow example from a single runner to a 5-target matrix (linux/darwin/win32 across x64/arm64 where applicable).
  • Demonstrates passing TARGET_PLATFORM / TARGET_ARCH into the build step to drive platform-specific bundling.
  • Renames and uploads tarballs per platform/arch into a single GitHub Release.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Add an inline YAML comment and a note explaining that the linux/arm64
matrix entry uses cross-building via TARGET_ARCH env var on an x64
runner, and that engines with native compilation steps may need actual
arm64 runners or QEMU emulation.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@josebalius
Copy link
Member Author

Thanks for the bot review summary! All actionable feedback has been addressed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants